package net.yunzhanyi.generic.domain.model;

import java.io.Serializable;

public class Author implements Serializable {
    /**
     * 作者主键
     */
    private Long id;

    /**
     * 作者姓名
     */
    private String authorName;

    /**
     * 作者朝代
     */
    private String authorDynasty;

    /**
     * 作者简介
     */
    private String info;

    /**
     * 朝代id
     */
    private Integer dynastyId;

    /**
     * 记录数目
     */
    private Integer recordCount;

    private static final long serialVersionUID = 1L;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getAuthorDynasty() {
        return authorDynasty;
    }

    public void setAuthorDynasty(String authorDynasty) {
        this.authorDynasty = authorDynasty;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Integer getDynastyId() {
        return dynastyId;
    }

    public void setDynastyId(Integer dynastyId) {
        this.dynastyId = dynastyId;
    }

    public Integer getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(Integer recordCount) {
        this.recordCount = recordCount;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", authorName=").append(authorName);
        sb.append(", authorDynasty=").append(authorDynasty);
        sb.append(", info=").append(info);
        sb.append(", dynastyId=").append(dynastyId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
